#include <iostream>
#include "selector.hpp"

using namespace std;
class sel_item :public selector_item {
public:
	sel_item(){
	}
	void action( void * arg0 , void* arg1 ){
		cout << "hello"<<endl;
		return;
	}
};

int main( int argc , char ** argv ){


	struct timespec timeout;
	timeout.tv_sec=100;
	timeout.tv_nsec=0;	
	selector sel( timeout );
	sel_item item;
	item.sock.m_nSock=0;

	sel.set_fd( &item );
	int ret = sel.select();
	cout << "ret:"<< ret<<endl;
	return 0;
}

